package com.finance.system.dao;

import com.finance.framework.lang.Page;
import com.finance.system.bean.pojo.SysConfig;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by CBWL on 2017/4/24.
 */
@Component
public interface SysConfigMapper {
    SysConfig getById(Long id);
    List<SysConfig> listAll();
    List<SysConfig> listByPage(Page page);
    List<String> keys();
    String findConfig(@Param("configName") String key);
    int addConfig(@Param("configName") String config_name,@Param("configValue") String config_value);
    int removeConfig(@Param("configName") String key);
    int update(SysConfig sysConfig);
}
